* etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Aug 2011 23:55:41 +0000 (16:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Aug 2011 23:55:41 +0000 (16:55 -0700)
commit2a3880a2400b402573e900945330fe2e543a0b87
tree8cc7f4bcfa0bea9650da44590a286a4ba668d433
parentcea09c26084cd5f491b2da87ddd6d63f5412cc4c
* etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,

to avoid potential buffer overflow issues on typical 64-bit hosts.
(whatlen_max): New static var.
(main): Avoid buffer overflow if subsidiary command length is
greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
result might not fit in 'int'.
lib-src/ChangeLog
lib-src/etags.c